
		var player = {
			pxMove: 10,
			height: 50,
			width: 40,
			backgroundColor: '#fa95aa',
			x: 0,
			y: 0,
			items: ["goldShield"],

			create: function(){
				$('#map').append('<div id="player"></div>');
				$('#player').css({width: this.width + 'px', height: this.height + 'px', backgroundColor: this.backgroundColor, position: "absolute"})
			},
			
			moveLeft: function(){
			 this.x -= this.pxMove;
             			this.makeMove();
			},
			
			moveRight: function(){
			 this.x += this.pxMove;
            			this.makeMove();
			},
			
			moveUp: function(){
			 this.y -= this.pxMove;
            			this.makeMove();
			},
			
			moveDown: function(){
				this.y += this.pxMove;
                this.makeMove();
			},
            
        	 makeMove: function() {
                console.log("X: " + this.x + "Y: " + this.y);
                $("#player").css({top: this.y + 'px', left: this.x + 'px'});
            },	
			
		addItem: function(item) {	
			this.items.push(item)
		},

		removeItem: function(item) {
			var itemIndex = this.items.indexOf(item);
			this.items.splice(itemIndex);
		},
		
		showItems: function(item) {
		var itemCount = this.items.length
		var itemList = "";
		for(i=0; i<itemCount; i++){
			itemList += this.items[i] + " "
			}
			document.write(itemList)
		}
	}		
